package com.jnshu.task.mapper;


import com.jnshu.task.app.User;

import java.util.List;
public  interface UserMapper {

        public  User getUser(int id,String username) throws Exception;

    //根据用户id与名字查询用户信息

    public User findUserById(int id) throws Exception;

    //查询用户列表

   public List<User> findUserByUsername(String username) throws Exception;

    //添加用户信息

    public void insertUser(User user)throws Exception;
    //批量添加用户
    public void insertBatch(List<User> users);

    //更新用户信息
    public void updateUser(User user) throws Exception;

    //删除用户
    public void deleteUserById(int id) throws Exception;

    }

